<template>
	<view class="">
		<view class="dm_h">
			<view class="dm_l">
				<view class="dl_t">
					可用健康豆
				</view>
				<view class="dl_b">
					{{points}}
				</view>
			</view>
			<view class="dm_r">
				<view class="rules" @click="toPointsList">
					 健康豆明细
				</view> 
				<!-- <view class="">
					规则
				</view> -->
			</view>
		</view>
		<view class="" style="margin-top: 140px;">
			<u-empty mode="order" text="暂无可兑换活动">
			</u-empty>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				points:0
			}
		},
		onLoad(options) {
			this.points = options.val
		},
		methods:{
			toPointsList(){
				uni.navigateTo({
					url:'/package/datas/pointsList?val='+this.points
				})
			}
		}
	}
</script>

<style lang="scss">
	.dm_h {
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
		padding: 16px 12px;
		border-bottom: 1px solid #eee;
	
		.dm_l {
			.dl_t {
				margin-bottom: 10px;
			}
	
			.dl_b {
				font-weight: 700;
				font-size: 20px;
			}
		}
	
		.dm_r {
			display: flex;
			align-items: center;
			.rules{
				display: flex;
				font-size: 14px;
			}
		}
	}
	
</style>